.ddmg_edit_table {
  position: relative;
  svg {
    pointer-events: none;
  }
}

.ddmg_table {
  width: 100%;
  color: #606266;
  table-layout: fixed;

  td {
    /* padding: 15px 0; */
    font-size: 14px;
    box-sizing: border-box;
    text-overflow: ellipsis;
    vertical-align: middle;
    position: relative;
    border-left: 1px solid #ebeef5;
    border-bottom: 1px solid #ebeef5;
    border-spacing: 0px;
    background-color: #fff;
  }

  td:first-child {
    border-left: none;
  }

  input {
    -webkit-appearance: none;
    background-color: #fff;
    background-image: none;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: inline-block;
    font-size: inherit;
    color: #606266;
    height: 30px;
    line-height: 30px;
    outline: 0;
    padding: 0 15px;
    -webkit-transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    width: 100%;
  }

  input.border {
    border: 1px solid #f56c6c;
  }

  input:disabled {
    background-color: #f5f7fa;
    color: #c0c4cc;
    cursor: not-allowed;
  }

  input::placeholder {
    color: #dcdfe6;
  }

  .input_div {
    margin: 0 auto;
    position: relative;
    width: calc(100% - 25px);

    span {
      color: #f56c6c;
      font-size: 12px;
      position: absolute;
      left: 0;
      top: 29px;
    }
  }

  .select_div,
  .autocomplete_div {
    margin: 0 auto;
    position: relative;
    width: calc(100% - 25px);

    input {
      cursor: pointer;
      width: 100%;
    }

    input:disabled {
      cursor: not-allowed;
    }

    .triangle,
    .clear {
      width: 12px;
      height: 12px;
      position: absolute;
      cursor: pointer;
    }

    .triangle {
      right: 8px;
      top: 3px;
      svg:last-child {
        display: none;
      }
    }

    .clear {
      right: 9px;
      top: 6.5px;
      svg:first-child {
        display: none;
      }
    }

    span {
      color: #f56c6c;
      font-size: 12px;
      position: absolute;
      left: 0;
      top: 29px;
    }
  }

  .select_div.active,
  .autocomplete_div.active {
    .triangle {
      border-top: none;
    }
  }

  .control {
    -moz-user-select: none;
    /*火狐*/
    -webkit-user-select: none;
    /*webkit浏览器*/
    -ms-user-select: none;
    /*IE10*/
    -khtml-user-select: none;
    /*早期浏览器*/
    user-select: none;

    a {
      margin: 0 3px;
      cursor: pointer;
    }
  }
}

.ddmg_body_table.hover {
  tr:hover {
    td {
      background-color: #f5f7fa !important;
    }
  }
}

.ddmg_body_table.stripe {
  tr:nth-child(even) {
    td {
      background-color: #fafafa;
    }
  }
}

.ddmg_header_table {
  overflow: hidden;
  border: 1px solid #ebeef5;

  td {
    border-bottom: none;
    /* padding: 0px 20px; */

    i {
      font-style: normal;
      color: red;
    }
  }
}

.ddmg_body_table {
  overflow: auto;
  border-left: 1px solid #ebeef5;
  border-right: 1px solid #ebeef5;

  td {
    height: 60px;
  }
}

.ddmg_footer_table {
  overflow: hidden;
  background-color: #f5f7fa;
  border-top: 1px solid #ebeef5;
  border-left: 1px solid #ebeef5;
  border-right: 1px solid #ebeef5;
}

.ddmg_fixed_table {
  overflow: hidden;
  position: absolute;
  left: 0px;
  top: 0;
  box-shadow: 0 1px 5px #ebeef5;

  .ddmg_header_table,
  .ddmg_body_table,
  .ddmg_footer_table {
    border-right: none;
    position: absolute;
    right: 0;
  }

  .ddmg_header_table {
    top: 0;
    z-index: 2;
  }

  .ddmg_body_table {
    overflow: hidden;
  }

  .ddmg_footer_table {
    bottom: 0;
  }
}

.ddmg_right_patch {
  background-color: #fff;
  position: absolute;
  left: 1px;
  top: 1px;
}

.ddmg_right_patch.border {
  border-left: 1px solid #ebeef5;
  border-right: 1px solid #ebeef5;
}

.ddmg_right_patch.border+.ddmg_right_patch {
  bottom: 1px;
  top: auto;
}

.ddmg_select_box,
.ddmg_autocomplete_box {
  display: none;
  position: absolute;
  z-index: 5;
  margin-top: 7px;

  .loading,
  .no_data {
    display: none;
    text-align: center;
    padding: 30px 0 40px;
  }

  .no_data {
    color: #999;
    font-size: 14px;
    padding: 0 0 12px;
  }

  .loading.active,
  .no_data.active {
    display: block;
  }

  ul {
    list-style: none;
    padding: 6px 0;
    margin: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  li {
    font-size: 14px;
    padding: 0 20px;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #606266;
    height: 34px;
    line-height: 34px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    cursor: pointer;
    width: 100%;
  }

  li:hover,
  li.active {
    background-color: #f5f7fa;
  }

  .list {
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    background-color: #fff;
    -webkit-box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 124px;
    max-height: 251px;
  }
}